package com.bizihang.rabbitmq.consumer;


import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Application {
	@Bean
	Queue helloQueue() {
		Queue queue = new Queue("hello");
		return queue;
	}

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
